package org.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Orders {

    Integer id;
    Integer user_id;
    String number;
    Date createtime;
    String note;

    //一对一的关系一个订单对应一个用户；
    User user;
    //一对多
    List<Orderdetail> orderdetailList;
}
